package com.gensdai.leliang.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;

import com.gensdai.leliang.R;
import com.gensdai.leliang.base.BaseActivityNoAbs;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by Administrator on 2017/6/5.
 */

public class Set_Mm extends BaseActivityNoAbs implements View.OnClickListener {

    @BindView(R.id.ui_title)
    TextView uiTitle;
    @BindView(R.id.back)
    LinearLayout back;
    @BindView(R.id.set_enter_mm)
    LinearLayout setEnterMm;
    @BindView(R.id.set_pay_mm)
    LinearLayout setPayMm;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.set_mm);
        ButterKnife.bind(this);
        init();
        setclick();
    }

    private void setclick() {
        back.setOnClickListener(this);
        setEnterMm.setOnClickListener(this);
        setPayMm.setOnClickListener(this);
    }

    /**
     * 初始化
     */
    private void init() {
        uiTitle.setText(getString(R.string.set_mm));
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.set_enter_mm:
                Intent go_set_enter_mm = new Intent(this, set_enter_mm.class);
                startActivity(go_set_enter_mm);
                break;
            case R.id.set_pay_mm:
//                Toast.makeText(this, "功能正在开发中，尽请关注哦！~", Toast.LENGTH_SHORT).show();
                Intent go_set_pay_mm = new Intent(this, set_pay_mm.class);
                startActivity(go_set_pay_mm);
                break;
            case R.id.back:
                this.finish();
                break;
            default:
                break;
        }
    }

}
